home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PImport.cpp < prev    next >
C/C++ Source or Header  |  1996-08-15  |  1KB  |  60 lines

  1. /*
  2.  *--- PImport.cpp ---------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:19 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PImport.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PImport.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PImport::PImport
  16.   (    const char *    fFilename,
  17.     short            cAsWhat,
  18.     short            bRetain,
  19.     short            bConvert,
  20.     short            bTags,
  21.     short            bRetainCrop )
  22. {
  23.     PRequestBuf request(strlen(fFilename) + 20);
  24.  
  25.     request << fFilename
  26.             << cAsWhat
  27.             << bRetain
  28.             << bConvert
  29.             << bTags
  30.             << bRetainCrop
  31.             << (short) 0;        // no filters
  32.             
  33.     PCommand command(pm_import, request);
  34. }
  35.  
  36.  
  37. PImport::PImport
  38.   (    const char *    fFilename,
  39.     short            cAsWhat,
  40.     short            bRetain,
  41.     short            bConvert,
  42.     short            bTags,
  43.     short            bRetainCrop,
  44.     PRequestBuf&    filters )
  45. {
  46.     PRequestBuf request(strlen(fFilename) + filters.Size() + 50);
  47.  
  48.     request << fFilename
  49.             << cAsWhat
  50.             << bRetain
  51.             << bConvert
  52.             << bTags
  53.             << bRetainCrop
  54.             << filters;
  55.             
  56.     PCommand command(pm_import, request);
  57. }
  58.  
  59. // end of PImport.cpp
  60.